package com.haredot.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 
* @TableName tb_resource_download_history
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ResourceDownloadHistory implements Serializable {
    @Serial
    private static final long serialVersionUID = -4910791649658616780L;
    /**
    * 
    */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 下载人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
    * 资源ID
    */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long resId;
    /**
    * 下载时间
    */
    private LocalDateTime createTime;

}
